package com.chengxiaoxiao.domain;

import java.io.Serializable;
import java.util.Date;

/*      `id` int(11) NOT NULL AUTO_INCREMENT,
  `bookName` varchar(100) NOT NULL,
  `author` varchar(32) NOT NULL,
  `subTime` datetime DEFAULT NULL,
            `publisherId` int(11) DEFAULT NULL,
  `number` int(11) NOT NULL,
  `descript` varchar(256) DEFAULT NULL,
  `price` float(8,2) NOT NULL,
  `category_Id` int(11) DEFAULT NULL,
  `isbn` varchar(64) DEFAULT NULL,
    PRIMARY KEY (`id`)*/
public class Books implements Serializable {
    private long id;
    private String bookName;
    private String author;
    private Date subTime;
    private long publisherId;
    private long number;
    private String descript;
    private float price;
    private long category_Id;
    private String isbn;

    private String address;
    private String imagesSrc;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getImagesSrc() {
        return imagesSrc;
    }

    public void setImagesSrc(String imagesSrc) {
        this.imagesSrc = imagesSrc;
    }

    private Category category;
    private Publisher publisher;

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public Publisher getPublisher() {
        return publisher;
    }

    public void setPublisher(Publisher publisher) {
        this.publisher = publisher;
    }

    public Books() {
    }

    public Books(long id, String bookName, String author, Date subTime, long publisherId, long number, String descript, float price, long category_Id, String isbn, String imagesSrc) {
        this.id = id;
        this.bookName = bookName;
        this.author = author;
        this.subTime = subTime;
        this.publisherId = publisherId;
        this.number = number;
        this.descript = descript;
        this.price = price;
        this.category_Id = category_Id;
        this.isbn = isbn;
        this.imagesSrc = imagesSrc;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Date getSubTime() {
        return subTime;
    }

    public void setSubTime(Date subTime) {
        this.subTime = subTime;
    }

    public long getPublisherId() {
        return publisherId;
    }

    public void setPublisherId(long publisherId) {
        this.publisherId = publisherId;
    }

    public long getNumber() {
        return number;
    }

    public void setNumber(long number) {
        this.number = number;
    }

    public String getDescript() {
        return descript;
    }

    public void setDescript(String descript) {
        this.descript = descript;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public long getCategory_Id() {
        return category_Id;
    }

    public void setCategory_Id(long category_Id) {
        this.category_Id = category_Id;
    }

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }
}
